package com.computergames.server.message.cardMessage;

import com.computergames.server.message.AbstractGameMessage;
import com.computergames.server.message.Message;
import com.computergames.server.protocol.CardMessageDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
//@JsonDeserialize(using = CardMessageDeserializer.class)
public abstract class AbstractCardMessage extends AbstractGameMessage {
    //一般打牌可出一张或多张
    //牌类均可采用字母+数字的形式进行表示
    private String[] card;

    // 目前没有明牌情况，默认为false
    // 德扑showdown阶段双方进行明牌
    //boolean situationInformation;

    public AbstractCardMessage()
    {
        super();
    }

    public AbstractCardMessage(String[] card)
    {
        this.card = card;
    }

}
